﻿using Catel.Articles.Base.Data.Attributes;
using Catel.Articles.Base.UI;

namespace Catel.Articles._02___WPF_controls.Examples.TraceOutputControl
{
    [Example("TraceOutputControl", "Example of the TraceOutputControl control",
        LongDescription = @"The TraceOutputControl is a debugging convenience control. It shows all the trace output. This way, you " +
                          @"can easily view all the binding errors, etc in your app instead of the non-colored output box in Visual Studio.",
        SourceFileName = "/Examples/TraceOutputControl/Code.txt",
        ImageUri = "/Examples/TraceOutputControl/Screenshot.png",
        ClickHandlerName = "ShowExample")]
    public class Example
    {
        /// <summary>
        /// Shows the example.
        /// </summary>
        private static void ShowExample()
        {
            // Create control
            Windows.Controls.TraceOutputControl traceOutputControl = new Windows.Controls.TraceOutputControl();
            
            // Show control
            ExampleHelper.ShowControlInWindow(traceOutputControl, null, 400, 400);
        }
    }
}
